package com.java.digitalsignagesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.digitalsignagesystem.entity.Operate;

import java.io.IOException;
import java.time.LocalDateTime;
import java.util.List;


/**
 * (Operate)表服务接口
 *
 * @author makejava
 * @since 2023-08-24 10:56:22
 */
public interface OperateService extends IService<Operate> {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    Operate queryById(Integer id);



    /**
     * 新增数据
     *
     * @param operate 实例对象
     * @return 实例对象
     */
    Operate insert(Operate operate);

    /**
     * 修改数据
     *
     * @param operate 实例对象
     * @return 实例对象
     */
    Operate update(Operate operate);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    List<Operate> selectConcernByUserId(String userId, String theme, LocalDateTime startTime, LocalDateTime currentDateTime);

    List<Operate> selectByDataId(String indicatorId);

    String  getData(String theme) throws IOException;

    List<Operate> selectCollectByUserId(String userId, String theme, LocalDateTime startTime, LocalDateTime currentDateTime);

    List<Operate> selectByUserId(String userId);
}
